home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / System / ReqAttack / ReqReplacers / replacer.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-23  |  972 b   |  31 lines

  1. #ifndef REPLACER_H
  2. #define REPLACER_H
  3.  
  4. #define REQATTACK_DISPLAYREQ 127
  5.  
  6. struct ReplacerData
  7. {
  8.   ULONG res1;
  9.     struct EasyStruct *easystr;
  10. };
  11.  
  12. #endif
  13.  
  14. /*
  15. ** The easystruct that will be
  16. ** passed to your proggy contains the body text preprocessed by RawDoFmt
  17. ** so you don't need to do this yourself.
  18. **
  19. ** You're not allowed to use this ea data to display a requester - you may
  20. ** cause a deadlock that way!!! The requester's text should not be equal
  21. ** in any way to the ea text - you should warn user about this because
  22. ** settings depend on him! The good way not to cause a deadlock is to
  23. ** add a single space at the start of text/title and ask user to define
  24. ** the patched req like this : TEXT="some text#?" TITLE="title#?" this way
  25. ** there won't be a deadlock if you open a req with " title" or " some text".
  26. **
  27. ** If you want only to filter the requester - return from your program
  28. ** with 127 in d0 (exit(REQATTACK_DISPLAYREQ)/return REQATTACK_DISPLAYREQ).
  29. **
  30. */
  31.